<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/cases/hear/";  //应用的地址名
String drawRegActionName = basePath+"CaseSourceHear_drawReg.action";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    <title>案源合议提请添加或编辑</title>
<script type="text/javascript">
<!--
           $(function(){
             
               $('#organizerDept').validatebox({
                   required:'true',
                   missingMessage:'请填写承办单位！',
                   validType:'length[1,50]'
               });
               $('#caseName').validatebox({
                   required:'true',
                   missingMessage:'请填写案件名称！',
                   validType:'length[1,50]'
               });
               $('#caseDescribe').validatebox({
                   required:'true',
                   missingMessage:'请填写涉案描述！',
                   validType:'length[1,2000]'
               });
	           //点击添加按钮操作
			   $('#addBtn').click(function(){
                  $('#editForm').submit();
	            });
	            //表单验证及提交处理操作
	           $('#editForm').form({
			        url:'<%=drawRegActionName%>',
			        onSubmit: function(){
			           if($(this).form('validate')){
			                 $.util.showLoading();
			                 $('#operateWindow').window('close');
                            return true;
			             }else{
			                return false;
			             }
			        },
			        success:function(data){
			            $.util.removeLoading();
                        returnOptMsg(data);
			        }
				});
	            
           });
//-->
</script>
  </head>
  
  <body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" >
    <s:form action="editForm" method="post">
    <s:hidden name="drawPo.vcId"/>
    <s:hidden name="drawPo.caseId"/>
    <s:hidden name="drawPo.registerPerson"/>
    <s:hidden name="drawPo.registerDeptId"/>
    <s:hidden name="drawPo.registerDate"/>
	<table align="center" class="tb_add_th" width="100%">
		<tr><th width="100px;">案源编号:</th><td><s:textfield id="caseNumber"  name="drawPo.caseNumber" readonly="true" /></td>
		    <th width="100px;">承办单位:</th><td><s:textfield id="organizerDept"  name="drawPo.organizerDept" /></td>
		</tr>
		<tr><th>案件名称:</th><td colspan="3"><s:textfield id="caseName"  name="drawPo.caseName" style="width:410px;"/></td></tr>
		<tr><th>所属时间:</th><td><input type="text" id="caseDate"  name="drawPo.caseDate" value="<s:date name="drawPo.caseDate" format="yyyy-MM-dd"/>" class="Wdate" onclick="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd'})"/></td>
		    <th>涉案金额:</th><td><s:textfield id="involvedMoney"  name="drawPo.involvedMoney" /></td>
		</tr>
		<tr><th>案情简述:</th><td colspan="3"><s:textarea id="caseDescribe"  name="drawPo.caseDescribe" style="height:210px;width:410px;"/></td></tr>
		<tr><th>批准人:</th><td><s:textfield id="approver"  name="drawPo.approver" /></td>
		    <th>批准时间:</th><td><input type="text" id="approvalDate"  name="drawPo.approvalDate" value="<s:date name="drawPo.approvalDate" format="yyyy-MM-dd"/>" class="Wdate" onclick="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd'})"/></td>
		</tr>
	</table>    
   </s:form>
  </body>
</html>

